//
//  HomeTableViewController.swift
//  swiftWeibo
//
//  Created by WangQiang on 2016/10/17.
//  Copyright © 2016年 WangQiang. All rights reserved.
//

import UIKit

class HomeTableViewController: UITableViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        setupNav()
        
    }
    private func setupNav(){
        navigationItem.leftBarButtonItem = UIBarButtonItem.init(image: UIImage.init(named: "navigationbar_friendattention"), style: .plain, target: self, action: #selector(HomeTableViewController.leftBtnClick))
        navigationItem.rightBarButtonItem = UIBarButtonItem.init(image:UIImage.init(named:"navigationbar_pop"), style: .plain, target:self, action: #selector(HomeTableViewController.rightBtnClick))
    }
    @objc private func leftBtnClick(){
        
    }
    @objc private func rightBtnClick(){
        let storybord = UIStoryboard.init(name: "QRCode", bundle: nil)
        let vc = storybord.instantiateInitialViewController()
        present(vc!, animated: true, completion: nil)
    }
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }

    // MARK: - Table view data source

    override func numberOfSections(in tableView: UITableView) -> Int {
        // #warning Incomplete implementation, return the number of sections
        return 0
    }

    override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
        // #warning Incomplete implementation, return the number of rows
        return 0
    }

}
